package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void  save(Permission permission);

    void deleteByPrimaryKey(Long id);

    void updateByPrimaryKey(Permission permission);

    Permission get(Long id);

    List<Permission> selectAll();

    PageInfo<Permission> query(QueryObject qo);

    void reload();

    //根据员工id查询权限
    List<String> selectByEmpid(Long id);
}